package com.home766.service.impl;

import com.home766.dao.ServiceAreaDao;
import com.home766.entity.ServiceArea;
import com.home766.service.ServiceAreaService;
import net.biz.service.impl.BaseServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service("serviceAreaServiceImpl")
@Transactional
public class ServiceAreaServiceImpl extends BaseServiceImpl<ServiceArea,Long> implements ServiceAreaService{
	
	@Autowired
	private ServiceAreaDao serviceAreaDao;
	@Autowired
	public void setBaseDao(ServiceAreaDao serviceAreaDao) {
		super.setBaseDao(serviceAreaDao);
	}
	@Override
	public List<ServiceArea> getListByShopsCode(String shopsCode) {
		// TODO Auto-generated method stub
		return serviceAreaDao.getListByShopsCode(shopsCode);
	}
	@Override
	public int deleteByCode(String shopsCode) {
		// TODO Auto-generated method stub
		return serviceAreaDao.deleteByCode(shopsCode);
	}
}
